<h3>New Folder</h3>
<cfif isdefined('form.newfolder')>
	<cfif NOT directoryexists('#request.basepath##f##dir##form.newfolder#')>
    <cfdirectory action="create" directory="#request.basepath##f##dir##form.newfolder#">
	</cfif>
    <cfinvoke component="cfcs.common.shared" method="redirect" url="index.cfm?c=pages&showfolders=1&a=default&f=#f#&dir=#dir#" msg="The folder was created." />
<cfelse>
<form method="post" action="index.cfm?c=pages&a=newfolder">
<cfoutput>#f##dir#<input type="text" name="newfolder" id="newfolder" value="" /> <input type="submit" value="Create Folder" name="submitbutton" id="abutton" />
<input type="hidden" name="f" value="#f#">
<input type="hidden" name="dir" value="#dir#">
</cfoutput>
</form>
<a href = "javascript:collapse('newfolder');">Cancel Adding Folder</a>
</cfif>